package com.molichuxing.gateway.bff.basic.services.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.molichuxing.gateway.bff.basic.convertor.Convert;
import com.molichuxing.gateway.bff.basic.entity.response.PurchaseParamDicVo;
import com.molichuxing.services.infrastructure.service.PurchaseParamDicService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.molichuxing.gateway.bff.basic.entity.response.DictVo;
import com.molichuxing.gateway.bff.basic.services.DictBffService;
import com.molichuxing.gateway.utils.DictUtil;

/**
 * 数据字典bff
 * 
 * @author zoumingyu
 * @date 2019年8月19日
 *
 */
@Service("dictBffService")
public class DictBffServiceImpl implements DictBffService {
	private static final Logger logger = LoggerFactory.getLogger(DictBffServiceImpl.class);

	@Resource
	private PurchaseParamDicService purchaseParamDicService;

	@Override
	public Map<String, List<DictVo>> getDict(String codeSet) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<PurchaseParamDicVo> getPurchaseDict(Integer type) {
		return Convert.toPurchaseParamDicVo(purchaseParamDicService.selectByType(type));
	}

}
